(.Promise (require "q") (lambda (resolve reject)
  (./dbus "org.jackaudio.JackPatchbay" (lambda (err p)
    (if err (throw err))

    (console.log "connected to jack patchbay")

    (./update)
    (p.on "GraphChanged" ./update)

    (resolve p)))))
